import request from '@/utils/request.js'

// 常量
const api_name = '/admin/sku'

export default {
    getSkuDetailsByProductId(productId) {
        return request({
            url: `${api_name}/getSkuDetailsByProductId/${productId}`,
            method: 'get'
        })
    },
    saveSku(data) {
        return request({
            url: `${api_name}/saveSku`,
            method: 'post',
            data: data
        })
    }
}
